<!DOCTYPE html>
<html>
<head>
	<title>推送记录</title>
	{{>/WEB-INF/pages/common/head_refs.part.html}}
</head>
<body>
<div class="container">
{{>/WEB-INF/pages/common/layout_header.part.html}}
	<ul class="breadcrumb">
	  <li><a href="{{ctx}}">首页</a> <span class="divider">/</span></li>
	  <li class="active">推送渠道配置</li>
	</ul>
	{{#message}}
		<div id="message" class="alert alert-success"><button data-dismiss="alert" class="close">×</button>{{message}}</div>
	{{/message}}
	<div><a class="btn" href="{{ctx}}/push/config/channel?create=true">新增应用配置</a></div>
	<br/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead><tr>
		<th>应用ID</th><th>创建时间</th><th>APNS</th><th>APNS Sandbox</th><th>Openfire</th><th></th>
		</tr></thead>
		<tbody>
		{{#configs.content}}		
			<tr>
				<td>{{appId}}</td>
				<td>{{createTime}}</td>
				<td>
					<a class="btn btn-info" href="{{ctx}}/push/config/channel?appId={{appId}}&formType=apns" 
					data-toggle="tooltip" title="最后修改于:{{apnsConfig.updateTime}}">配置</a>
				</td>
				<td>
					<a class="btn btn-info" href="{{ctx}}/push/config/channel?appId={{appId}}&formType=apns_sandbox" 
					data-toggle="tooltip" title="最后修改于:{{apnsSandboxConfig.updateTime}}">配置</a>
				</td>
				<td>
					<a class="btn btn-info" href="{{ctx}}/push/config/channel?appId={{appId}}&formType=openfire">配置</a>
				</td>
				<td><a href="{{ctx}}/push/config/delete?id={{appId}}">删除</a>{{index}}</td>
			</tr>
		{{/configs.content}}
		</tbody>
	</table>
	{{#page}}
	{{>/WEB-INF/pages/common/pagination.part.html}}
	{{/page}}
	{{>/WEB-INF/pages/common/layout_footer.part.html}}
</div>	
</body>
</html>
